package com.a.a;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

class d<T extends b> extends i<T> implements c {
    protected volatile boolean onCompleteCalled;

    d(@Nullable T arg1, @Nullable o arg2, @NonNull o arg3) {
        super((arg1), arg2, arg3);
    }

    public final void onComplete() {
        h v0 = this.c;
        if(this.onCompleteCalled) {
            throw new RuntimeException("onComplete called more than once");
        }

        if(v0 != null && !this.b) {
            this.a(new j(((b)v0)));
        }

        this.onCompleteCalled = true;
        this.b();
    }
}

